package com.zh.util.dict;

public enum CodeMsg {

    //通用的错误码
    SUCCESS(0,"success"),
    SERVER_ERROR(500100, "服务端异常"),
    BIND_ERROR(500101, "参数校验异常"),

    //登录模块 5002XX
    ACCOUNT_OR_PASSWORD_ERROR(500200, "帐号或密码错误"),
    ACCOUNT_ERROR(500201,"帐号异常"),
    SESSION_ERROR(500202,"令牌验证失败"),
    OLD_PASSWORD_ERROR(500203,"旧密码错误"),

    //用户管理 5003XX
    PERMISSION_ERROR(500300,"您没有权限进行操作"),
    ACCOUNT_EXIST(500301,"用户名已经存在"),
    ACCOUNT_NOT_EXIST(500302,"用户不存在"),

    //认证模块 5004XX
    IDENTITY_FORMAT_ERROR(500400,"身份证格式错误"),
    APPLY_TONGDUN_AUTH_FAILURE(500401,"申请身份验证失败,请稍后再试"),
    AUTH_NOT_HAS_COUNT(500402,"查询次数已用完，请充值"),
    AUTH_REPORT_NOT_EXIST(500403,"同盾报告不存在"),
    IMG_NOT_EMPTY(500444,"照片不存在"),
    IMG_FORMAT_ERROR(500445,"照片格式不正确"),
    SAVE_IMG_ERROE(500446,"保存图片出错")
    ;








    private int code;
    private String msg;

    CodeMsg(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
